package com.itcast.demo.valueTest;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
//推荐
@Component
@ToString
@ConfigurationProperties(prefix = "app1")
@Data
public class ValueInjectionExample1 {

    private String name;
    private int timeout;
    private String unkownProperty;
    private Map<String,String> configMap;
    private List<String> servers;
    private String javaHome;
}
